#ifndef VIEW_H
#define VIEW_H

#include <QObject>
#include <QGraphicsView>

class View : public QGraphicsView
{
    Q_OBJECT
public:
    View();
    void init();

protected:
    void mouseReleaseEvent(QMouseEvent *event) override;
    void wheelEvent(QWheelEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
//    bool eventFilter(QObject *obj, QEvent *e) override;
    void keyPressEvent(QKeyEvent *event) override;
    void keyReleaseEvent(QKeyEvent *event) override;
};

#endif // VIEW_H
